/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jfonia.notation;

import org.jfonia.connect5.basics.BasicValueNode;
import org.jfonia.connect5.basics.MutableValueNode;

/**
 *
 * @author Rik Bauwens
 */
public abstract class NoteOrRest
{
        private MutableValueNode<Integer> dotsNode;

        public NoteOrRest(int dots)
        {
                dotsNode = new BasicValueNode<Integer>(dots);
        }

        public int getDots()
        {
                return dotsNode.getValue();
        }

        public void setDots(int dots)
        {
                dotsNode.setValue(dots);
        }

        public MutableValueNode<Integer> getDotsNode()
        {
                return dotsNode;
        }
}
